package com.powernode.dto;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;
/**
* 分页查询结果集对象
*/
@Data
@AllArgsConstructor
public class PageResult<T> {
    //总记录数
    private Long total;
    //当前页的数据
    private List<T> records;

    public PageResult(){
        this.total = 0L;
        this.records = new ArrayList<T>();
    }

}
